import { request } from '@/utils/request'

export const getPurScreenCondition = async (params) => {
  return request({
		url: '/pur-report/screen-vis/getScreenCondition',
		method: 'GET',
		params
	})
}

export const getPurVehicleStatistics = async (params) => {
  return request({
		url: '/pur-report/screen-vis/getVehicleStatistics',
		method: 'GET',
		params
	})
}

export const priceFluctuation = async (params) => {
  return request({
		url: '/pur-report/screen-vis/priceFluctuation',
		method: 'GET',
		params
	})
}

export const operationUndulate = async (params) => {
  return request({
		url: '/pur-report/screen-vis/operationUndulate',
		method: 'GET',
		params
	})
}

export const qualityStatisticsPur = async (params) => {
  return request({
		url: '/pur-report/screen-vis/quantityFluctuations',
		method: 'GET',
		params
	})
}

export const orderProcessListsPur = async (params) => {
  return request({
		url: '/pur-report/screen-vis/getWaybillDaily',
		method: 'GET',
		params
	})
}

export const orderAllProcessListsPur = async (params) => {
  return request({
		url: '/pur-report/screen-vis/getWaybillOverall',
		method: 'GET',
		params
	})
}

export const getRoadLossScreenCondition = async () => {
  return request({
		url: '/pur-report/screen-vis/getRoadLossScreenCondition',
		method: 'GET'
	})
}

export const getRoadLossAnalysis = async (data) => {
  return request({
		url: '/pur-report/screen-vis/getRoadLossAnalysis',
    method: 'POST',
    data
	})
}

export const getCurrentAccount = async (params) => {
  return request({
    url: '/pur-report/screen-vis/getCurrentAccount',
    method: 'GET',
    params
  })
}

export const getPurQualityCondition = async (params) => {
  return request({
    url: '/pur-report/screen-vis/getQualityCondition',
    method: 'GET',
    params
  })
}

export const getPurQualityUndulate = async (data) => {
  return request({
    url: '/pur-report/screen-vis/getQualityUndulate',
    method: 'POST',
    data
  })
}